<?php
declare(strict_types=1);
/**
 * @project: 兔兔找图微信小程序
 * @author: kert
 * @date: 2023/5/16
 * @link: https://www.qqdeveloper.com/
 * @site: 微信搜索-兔兔找图
 */

namespace App\Models\Admin\Ai;

class AiGroup extends \App\Models\Ai\AiGroup
{
    public static function getList(): array
    {
        $items = self::query()
            ->where([["is_show", "=", 1],])
            ->get(["uid", "title"]);
        $array = [];
        foreach ($items as $value) {
            $array[$value->uid] = $value->title;
        }
        return $array;
    }
}
